package com.gtt.jr.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gtt.jr.repository.TypeDao;
import com.gtt.jr.repository.domain.ContainerType;

/**
 * 集装箱类别服务实现
 * 
 * @author 高甜甜(gao12581@sina.com)
 * @date 2010-8-29
 * 
 */
@Service
public class TypeServiceImpl implements TypeService {

	@Resource
	private TypeDao typeDao;

	public List<ContainerType> findAll() {
		return typeDao.findAll();
	}

	public ContainerType get(Long id) {
		return typeDao.load(id);
	}
}
